#ifndef FORGET_1_H
#define FORGET_1_H

#include <QWidget>
#include <QTcpSocket>
#include <QAbstractSocket>

namespace Ui {
class forget_1;
}

class forget_1 : public QWidget
{
    Q_OBJECT

public:
    explicit forget_1(const QString &username, const QString &data, QWidget *parent = nullptr);
    ~forget_1();

private slots:
    void on_queren_clicked();
    void on_fanhui_clicked();
    void onConnected();
    void onReadyRead();
    void onError(QAbstractSocket::SocketError socketError);

private:
    Ui::forget_1 *ui;
    QString m_username;
    QString m_data;
    QTcpSocket *socket;
};

#endif // FORGET_1_H
